package com.example.day_17.net;

import com.example.day_17.bean.BannerBean;
import com.example.day_17.bean.InFoBean;
import com.example.day_17.bean.SecondBean;

import io.reactivex.Flowable;
import retrofit2.http.GET;

public interface ApiService {
    String baseUrl = "https://www.wanandroid.com/";

    @GET("tree/json")
    Flowable<SecondBean> getSecond();

    //https://www.wanandroid.com/
    @GET("banner/json")
    Flowable<BannerBean> getBanner();

    @GET("article/list/1/json")
    Flowable<InFoBean> getData();
}
